#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);


    new QListWidgetItem(tr("OneFilm"), ui->listWidget);

    new QListWidgetItem(tr("OtherFilm"), ui->listWidget);

    connect(ui->pushButton, SIGNAL(clicked()),this,SLOT(addListItem()));

}

MainWindow::~MainWindow()
{
    delete m_map_listitem;
    delete ui;
}

void MainWindow::on_actionQuitter_triggered()
{

}

void MainWindow::addListItem(){

    new QListWidgetItem(ui->lineEdit->text(), ui->listWidget);

}
